Skip to content

Instantly share code, notes, and snippets.

@defuse
defuse / CLAUDE.md
Created August 26, 2026 02:55
CLAUDE.md -- no silent failures, testing, anti-entropy, etc.

Claude Code Instructions

Working Style

  • Push back on genuinely bad ideas, with reasoning. Point out bugs, misleading names, and better approaches when you see them. Direct but collaborative.
  • If requirements are ambiguous or a design decision could reasonably go multiple ways, ask rather than guess. A quick question is cheaper than reworking a wrong assumption.
  • If a prompt looks damaged or wrong, STOP and say so — truncated mid-sentence, duplicated blocks, garbled copy/paste, references to context that doesn't exist, or
@ritiek
ritiek / bw_totp_to_qrcode.sh
Created September 20, 2025 16:30
Display QR codes of TOTPs stored in Bitwarden JSON export
#!/bin/sh
rg '"totp": "' ~/Downloads/bitwarden_export_20250920162136.json | \
sed -E 's/.*"totp": "(.*)".*/\1/' | \
while IFS= read -r x; do
echo "$x"
echo -ne "$x" | qrencode -t UTF8 -o -
echo
done
@hoshinolina
hoshinolina / arkit.md
Last active November 3, 2026 20:53
ARKit/FaceKit notes

Introduction

ARKit face tracking is shrouded in a ton of myth and mystique.

I reverse engineered the internal face tracking API, and this is how it actually works.

Disclaimer

This is based on reverse engineering the API of Apple's face detection framework and testing it with my own code. Some of it is educated guesswork based on names and strings. I did not reverse engineer the details of how ARKit/FaceKit works, but given what I've seen, I'm quite confident in the overall big picture.

@Iksas
Iksas / blocklists.md
Last active November 3, 2026 20:48
Pi-hole blocklists

Pi-hole blocklists

The following file contains blocklists I use with my Pi-hole installations.

They block with minimal false positives:

  • ads / spam / telemetry / tracking
  • malware
  • phishing and fraudulent websites
  • torrents
@butterw
butterw / CAS_dx11.hlsl
Created November 14, 2023 22:02
mpc-hc/be hlsl Contrast Adaptive Sharpening shader (dx9 and dx11 versions)
// $MinimumShaderProfile: ps_4_0
#define CAS 0.35
#define Npixels 1280 //0
#define Show_Edge 0
/* --- CAS_lite (dx11) --- */
/* Contrast Adaptive Sharpening (AMD FidelityFX CAS)
mpc-hc mod by butterw (9 texture, 47 arithmetic) (2023-11)
based on this reshade port: https://gist.github.com/martymcmodding/30304c4bffa6e2bd2eb59ff8bb09d135
@MotherSphere
MotherSphere / nikke-pc-launcher-compromise.md
Last active November 3, 2026 20:55
NIKKE PC launcher compromise (Nov 2026): Level Infinite CDN files modified, remote-control agent, indicators

NIKKE PC launcher compromise (November 2026)

Caution

From 2026-09-27, four official JavaScript files on Level Infinite's CDN contained attacker code. The NIKKE PC launcher loads these files. From Oct 24 at the latest, opening the launcher could install a remote-control agent: while the launcher was open, the attacker could run any command on your machine, read any file and take screenshots.

Update, 2026-11-03 20:40 GMT: three of the files were replaced on Nov 3 at 17:04, 17:13 and 17:21 GMT. The fourth, FeedList.feb647c9.js, was cleaned at the origin on Oct 28, but two CDN servers still delivered the modified copy at 20:23 GMT. The attacker's server no longer answered at 18:31 GMT. None of this undoes anything on machines that were already infected, and the old files may still be in your launcher's cache. Do not open the NIKKE PC launcher until Level Infinite confirms the fix, and clear its cache before you do.

This report comes from one infected machine, plus findings from other

@flamerix-ai
flamerix-ai / README.md
Last active November 3, 2026 20:41
Claude Code burns ~15-20% of your tokens on a 3-word status line: a Bun preload that turns agent_summary off · by Flamerix AI, flamerix.ai · MIT

Claude Code burns ~15–20% of your tokens on a 3-word status line. Here's how to turn it off

by Flamerix AI · MIT License

Platforms: Linux and Windows 11 tested by us; macOS reported by others. Tested on Claude Code 2.1.257–2.1.317. The binary is not modified (BUN_OPTIONS=--preload). An update can silently undo it, so see Verify.

TL;DR

Every ~30 seconds, Claude Code re-sends each background agent's full transcript to the model to

@cfultz
cfultz / Bootable.md
Created November 29, 2025 20:25
Creating a Windows 11 bootable on Linux (backup copy from nixaid.com)

Here is the procedure formatted as clean, copy-pastable Markdown.


Creating a Bootable Windows 11 USB on Linux

This procedure outlines how to create a bootable Windows 11 USB flash drive (or HDD/SSD) using the command line.

⚠️ WARNING: DATA LOSS This process involves formatting drives. Identify your device identifier correctly (e.g., /dev/sdX). In the examples below, the device is /dev/sde. Do not copy/paste commands containing /dev/sde without verifying your specific drive identifier.

0.colfws11.als.att.net
0.colfws12.als.att.net
0.colfws15.als.att.net
0.fwsgrp5.als.att.net
0.fwsgrp8.als.att.net
0.houfws18.als.att.net
103.muea.colm.chcgil24.dsl.att.net
104.cleveland-29-30rs.oh.dial-access.att.net
107.muda.htfd.washdctt.dsl.att.net
109.seattle-11-13rs.wa.dial-access.att.net